home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / ziff.zip / ZP.BAT < prev   
DOS Batch File  |  1991-10-09  |  2KB  |  73 lines

  1. @echo off
  2. If "%1" == "" goto :First
  3. CLS
  4. Echo ZP.BAT, PCPLUS and ZIFFPLUS Startup Batch File
  5. Echo by James D. McDaniel 10-7-91
  6. Echo Copyright (c) 1991 Ziff Communications
  7. Echo  
  8. Echo This batch file is designed to take advantage of the environment
  9. Echo variables PCPLUS and ZIFFPLUS.  PCPLUS should be set to your Procomm
  10. Echo Plus directory and ZIFFPLUS should be set to your ZIFFPLUS directory.
  11. Echo If you set both variables and put the ZiffPlus directory in
  12. Echo your path or copy the ZP.BAT file to a directory in your path,
  13. Echo then you will be able to run ZP from any directory.
  14. Echo  
  15. Echo While reading this batch file you will notice almost the same command
  16. Echo appear four or more times.  ZP will try to run/load the program
  17. Echo from the default directory, then from the ZIFFPLUS directory, then
  18. Echo from the PCPLUS directory and last from your PATH or APPEND path.
  19. Echo Normally ZP will be running from the ZiffPlus directory.
  20. Echo  
  21. Echo This Help Display shows when you run ZP using any command line
  22. Echo parameter.  Using the command "ZP Help" would display this screen.
  23. Echo If you do not wish to see this screen then do not run ZP with any
  24. Echo parameters.  Thank you for using ZiffPlus!
  25. Echo  
  26. PAUSE
  27.  
  28. :FIRST
  29.  
  30. REM  *** Goto ZiffPlus Directory ***
  31.  
  32. If "%ZIFFPLUS%"=="" Goto PSTART1
  33.  
  34. %ZIFFPLUS%\
  35. CD %ZIFFPLUS%
  36. Goto START
  37.  
  38. REM  *** Goto PcPlus Directory ***
  39.  
  40. :PSTART1
  41.  
  42. if "%PCPLUS%"=="" Goto START
  43.  
  44. %PCPLUS%\
  45. CD %PCPLUS%
  46.  
  47. :START
  48.  
  49. REM *** Run PCPLUS with ZIFFPLUS Script ***
  50.  
  51. If "%PCPLUS%"=="" Goto NOPCPLUS
  52.  
  53. If Exist ZIFFPLUS.ASX %PCPLUS%\PCPLUS /fZIFFPLUS
  54. If Exist ZIFFPLUS.ASX Goto END
  55.  
  56. If Exist %ZIFFPLUS%\ZIFFPLUS.ASX %PCPLUS%\PCPLUS /f%ZIFFPLUS%\ZIFFPLUS
  57. If Exist %ZIFFPLUS%\ZIFFPLUS.ASX Goto END
  58.  
  59. If Exist %PCPLUS%\ZIFFPLUS.ASX %PCPLUS%\PCPLUS /f%PCPLUS%\ZIFFPLUS
  60. If Exist %PCPLUS%\ZIFFPLUS.ASX Goto END
  61.  
  62. %PCPLUS%\PCPLUS /fZIFFPLUS
  63. Goto END
  64.  
  65. :NOPCPLUS
  66.  
  67. If Exist %ZIFFPLUS%\ZIFFPLUS.ASX PCPLUS /f%ZIFFPLUS%\ZIFFPLUS
  68. If Exist %ZIFFPLUS%\ZIFFPLUS.ASX Goto END
  69.  
  70. PCPLUS /fZIFFPLUS
  71.  
  72. :END
  73.